package com.huowenjie;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
@EnableFeignClients
//@EnableCircuitBreaker  //熔断器
public class Ribbon1 {
    public static void main(String[] args) {
        SpringApplication.run(Ribbon1.class);
    }

    @RequestMapping("/testHelth")
    public String test(){
        System.out.println("=================testHelth================");
        return "ok";
    }
}
